import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class Solution1704 {
    public boolean halvesAreAlike(String s) {
        Set<Character> set=new HashSet<>(Arrays.asList('a','e','i','o','u','A','E','I','O','U'));
        int a=0,b=0;
        for (int i=0;i<s.length()/2;i++){
            if (set.contains(s.charAt(i))){
                a++;
            }
        }
        for (int i=s.length()/2;i<s.length();i++){
            if (set.contains(s.charAt(i))){
                b++;
            }
        }
        return a==b;
    }

    public static void main(String[] args) {
        System.out.println(new Solution1704().halvesAreAlike("book"));
    }
}
